import { herinRequist } from "../http.js";
// 首页
const Index = {
	getBanner() {
		return herinRequist({ url: '/app/carousel', method: 'GET' });
	},
	getHotSpotType() {
		return herinRequist({ url: '/app/hotpoint-types', method: 'GET' });
	},
	getWeather(data) {
		return herinRequist({ url: '/app/weather', method: 'GET', data });
	},
	getHotSpotList(type) {
		return herinRequist({ url: '/app/hotpoint-list', method: 'GET', data: {type, keyword: '', page: 0, perpage: 5 }});
	},
	getMessageNew() {
		return herinRequist({ url: '/app/message-new', method: 'GET' });
	}
}

export default Index;
